package com.anzia.generic;

/**
 *@ClassName MyGenericMethod
 *@Description
 *@Author Anzia.
 *@Date 2021/4/10 13:13
 *@Version 1.0
 **/
public class MyGenericMethod {
    //泛型方法
    public <T> T show(T t) {
        System.out.println("泛型方法：" + t);
        System.out.println("泛型方法的类型：" + t.getClass());
        return t;
    }
}
